// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** resolveShortLink 解析短链接 GET /api/link */
export async function resolveShortLinkUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.resolveShortLinkUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString_>('/api/link', {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** distroShortLink 销毁链接 GET /api/link/distro */
export async function distroShortLinkUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.distroShortLinkUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString_>('/api/link/distro', {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}
